package day05;

public class Diedaifangshi {

	public static void main(String[] args) {
        int sum = 0;
        for(int a=0;a<=100;a++) {
           sum = sum + a;
        }
        System.out.println("1 + 2 + 3 + …… + 100 ="+sum);
    }

}
